import { GOODS_RECEIVED, GOODS_INIT } from '../action/actionGoods';
export function goodList (state = {}, action) {
    switch (action.type) {
    case GOODS_RECEIVED:
        return Object.assign({}, state, {
            goods: action.goods,
        });
    case GOODS_INIT:
        return Object.assign({}, state, {
            goods: action.goods,
        });
    default:
        return state;
    }
}
